﻿<local:BaseDataVisualizer
    x:Class="BrainTechLLC.Silverlight.ClientApplication.ShowStatesControl"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"	
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls">
    <!--<ScrollViewer Name="scrollViewer" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Top"
                  ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0,0,0,0" Margin="0,0,0,0" Padding="0,0,0,0">-->
        <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Margin="0,0,0,0">
            <ListBox Height="Auto" HorizontalAlignment="Stretch" x:Name="lstStates" VerticalAlignment="Stretch" Width="Auto"                   
                 Style="{StaticResource ListBoxStyle1}" ItemContainerStyle="{StaticResource ListBoxItemStyle1}"
                 Margin="0,0,0,0" Padding="0,0,0,0" 
                 SelectionChanged="lstStates_SelectionChanged">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <local:DataVisualizer x:Name="editState" DataToVisualize="{Binding Mode=OneWay}" local:WindowContainer.IsOpen="False" Loaded="lstStates_Loaded" 
                                                      Template="{StaticResource WinContainer}" VisualizerName="EditState" IsCollection="False"
                                                      Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" HeaderBackground="#FF2F005F" WindowBorder="#FFCD7F01" DescriptionTextString="State" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Grid>
    <!--</ScrollViewer>-->
</local:BaseDataVisualizer>